Completed
Push — master ( dce25d...9db7be )
by Dimas
09:29 queued 12s
created

local   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1
1
import * as upath from 'upath';
2
import { readFileSync } from 'fs';
3
import Config from './Config';
4
import core from './../compiler/core';
5
import filemanager from './../compiler/filemanager';
6
import log from './../compiler/log';
7
export default class local {
8
  localpath: string;
9
  constructor(private config: Config) {
10
    this.localpath = config.localPath;
11
  }
12
  fetch() {
13
    const path = this.localpath;
14
    var read = core.readdir(path, [], this.config.ignores);
15
    return read;
16
  }
17
}
18